//
//  LTUser.m
//  LTIM
//
//  Created by 俊松何 on 2017/3/30.
//  Copyright © 2017年 俊松何. All rights reserved.
//

#import "LTUser.h"

@implementation LTUser

-(instancetype)init
{
    if(self = [super init])
       {
           _type = LTUserTypeUser;
       }
    return self;
}


//+(NSDictionary *)mj_replacedKeyFromPropertyName
//{
////    return  @{
////              @"userId" : @"id"
////              };
//    
//}
-(NSString *)getShowNmae
{
    if(self.remark.length == 0)
    {
        return self.name;
    }else
    {
        return self.remark;
    }

}
-(NSString *)getGenderStr
{
    if(_gender == -1)
    {
        return NSLTLocalizedString(@"personInfo.secret", nil);
        
    }else if (_gender == 1)
    {
        return NSLTLocalizedString(@"personInfo.male", nil);
    }else if (_gender == 2)
    {
        return NSLTLocalizedString(@"personInfo.famale", nil);
    }else
    {
        return @" ";
    }
}

-(void)setId:(NSString *)id
{
    _id = id;
    _userId = id;

}

-(void)setAccount:(NSString *)account
{
    _account = account;
    _extra = account;

}
-(void)setAvatar_file:(NSString *)avatar_file
{
    _avatar_file = avatar_file;
    _avatar = avatar_file;
}

@end
